<?php
class Device_type_manage {

	var $CI;
	public function __construct() {
		$this->CI =& get_instance();
	}

	/**
	 *
	 *
		* @name query_device_name
		* @date 2013-1-11
		* @author eifel
		* @param string 硬件编号
		* @return string 硬件名称
		* @version 1.0
		* @description 根据硬件编号获取硬件名称
	 */
	public function query_device_name($device_class) {
		$this->CI->load->model("common/adm_type_model");
		return $this->CI->adm_type_model->query_device_name($device_class);
	}

	/**
	 *
	 *
		* @name query_device_type_list
		* @date 2013-1-22
		* @author eifel
		* @param
		* @return array 硬件类别列表
		* @version 1.0
		* @description 查询硬件的类别列表
	 */
	public function query_device_type_list() {
		$this->CI->load->model("common/adm_type_model");
		return $this->CI->adm_type_model->query_device_type_list();
	}
}